Color Highlight
🎨 Lightweight Color Highlight colorizer for Sublime Text
Details
Installs
- Total 307K
- Win 227K
- Mac 44K
- Linux 36K
Nov 23 | Nov 22 | Nov 21 | Nov 20 | Nov 19 | Nov 18 | Nov 17 | Nov 16 | Nov 15 | Nov 14 | Nov 13 | Nov 12 | Nov 11 | Nov 10 | Nov 9 | Nov 8 | Nov 7 | Nov 6 | Nov 5 | Nov 4 | Nov 3 | Nov 2 | Nov 1 | Oct 31 | Oct 30 | Oct 29 | Oct 28 | Oct 27 | Oct 26 | Oct 25 | Oct 24 | Oct 23 | Oct 22 | Oct 21 | Oct 20 | Oct 19 | Oct 18 | Oct 17 | Oct 16 | Oct 15 | Oct 14 | Oct 13 | Oct 12 | Oct 11 | Oct 10 | Oct 9 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 7 | 21 | 28 | 10 | 19 | 41 | 24 | 20 | 14 | 0 | 0 | 36 | 53 | 19 | 18 | 28 | 47 | 25 | 31 | 64 | 12 | 14 | 21 | 23 | 31 | 52 | 69 | 15 | 21 | 23 | 30 | 22 | 36 | 30 | 14 | 20 | 26 | 28 | 26 | 32 | 30 | 24 | 22 | 31 | 28 | 45 |
Mac | 3 | 7 | 6 | 5 | 4 | 10 | 2 | 2 | 7 | 0 | 0 | 3 | 3 | 3 | 6 | 10 | 7 | 6 | 13 | 5 | 1 | 4 | 8 | 6 | 8 | 5 | 5 | 6 | 2 | 4 | 4 | 5 | 10 | 5 | 4 | 3 | 4 | 11 | 6 | 6 | 21 | 7 | 6 | 13 | 3 | 13 |
Linux | 2 | 5 | 10 | 2 | 1 | 11 | 4 | 7 | 8 | 0 | 0 | 8 | 11 | 12 | 10 | 9 | 9 | 2 | 4 | 5 | 4 | 2 | 6 | 8 | 5 | 6 | 3 | 9 | 6 | 11 | 6 | 9 | 7 | 6 | 4 | 4 | 4 | 4 | 7 | 2 | 6 | 5 | 6 | 5 | 5 | 5 |
Readme
🎨 Color Highlight
Show color codes (like “#ffffff”, 0xffffff “rgb(255, 255, 255)”, “white”, hsl(0, 0%, 100%), etc.) with their real color as the background and/or gutter icons.
Installation
- Recommended - Using Sublime Package Control
- Ctrl+Shift+P then select
Package Control: Install Package
- install
Color Highlight
- Ctrl+Shift+P then select
- Alternatively, download the package from GitHub into your
Packages
folder and make sure to rename the directory to “Color Highlight”.
Usage
Supported color representations are:
Named colors in the form of CSS3 color names e.g.
green
,black
and many others are also supported.Hexademical in the form of
#RGB
,#RGBA
,#RRGGBB
or#RRGGBBAA
(you can use both upper and lower case letters)Hexadecimal numbers with prefix 0x in the form of
0xRRGGBB
or0xRRGGBBAA
RBG or RGBA value in the form of
rgb(red, green, blue)
orrgba(red, green, blue, alpha)
with decimal channel valuesHSL or HSLA value in the form of
hsl(hue, sat%, lum%)
orhsla(hue, sat%, lum%, alpha)
HSV or HSVA value in the form of
hsv(hue, sat%, val%)
orhsva(hue, sat%, val%, alpha)
HWB value in the form of
hwb(hue, white%, black%)
orhwb(hue, white%, black%, alpha)
CIELAB (Lab) value in the form of
lab(lum, a, b)
orlab(lum, a, b, alpha)
Cylindrical CIELAB (LCH) in the form of
lch(hue, chroma, lum)
orlch(hue, chroma, lum, alpha)
ANSI escape sequences: Âľ bit (8-color), 8-bit (256-color), 24-bit (true color) in the form of
\033[3Xm
,\033[4Xm
,\033[38;5;IIIm
or\033[38;2;RRR,GGG,BBBm
. Escape part accepting “^[
[”, “\033”, “\x1b[”, “\u001b[” and “\e[”
Those will be shown with colored background and gutter icons when they're found in your documents.
Configuration
You can disable live highlight directly from the command palette:
Color Highlight: Disable Color Highlight
Open settings using the command palette:
Preferences: Color Highlight Settings - User
Gutter icons can be switched among three flavors (or disabled) by using the
gutter_icon
setting:- “circle” - Gutter icon with the color in a circle
- “square” - Gutter icon with the color in a square
- “fill” - Fill whole gutter with color
"user": {
"gutter_icon": "fill"
}
Highlighting the value region in the color can be enabled or disabled by using the
highlight_values
setting.Enabling/disabling coloring of different types of values can be configured.
License
Copyright © 2018 German Mendez Bravo (Kronuz). All rights reserved.
MIT license
This plugin was initially a fork of https://github.com/Monnoroch/ColorHighlighter